package app.server.project.main.service.dto.rank;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;
import lombok.NonNull;
import lombok.RequiredArgsConstructor;

import java.util.List;

@Data
@RequiredArgsConstructor(staticName = "of")
public class CommonRankResp {

    @NonNull
    private List<CommonRankDto> ranks;
    /**
     * 当前每次,不上榜为0
     */
    @NonNull
    private int myPos;
    /**
     * 当前数值
     */
    @NonNull
    @JsonSerialize(using = ToStringSerializer.class)
    private long myVal;

    /**
     * 活动链接
     */
    private String taskUrl;

    /**
     * 跳转链接
     */
    private String jumpUrl;
    /**
     * 日榜倒计时
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private long countdownDay;
    /**
     * 周榜倒计时
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private long countdownWeek;


}
